import http from "@/utils/http";
import type { configItem } from "./type";

/**
 * 配置列表
 */
export const configList = () => {
  return http.get<configItem[]>("/crm/openMode/config/list");
};

/**
 * 保存配置
 */
export const saveConfig = (data: configItem[]) => {
  return http.post("/crm/openMode/config/save", data);
};

/**
 * 标准报价模板
 */
export const standardTemplate = (params?: { name?: string }) => {
  return http.get("/crm/openMode/config/templateList", params);
};
